<template>
  <el-card :body-style="{ padding: '0px' }">
    <div class="user">
      <img :src="userImg" class="userImage" />
      <div class="userInfo">
        <p class="uname">Admin</p>
        <p class="access">超级管理员</p>
      </div>
    </div>
    <div class="login-Info">
      <p>上次登录时间：<span>2021.12.7</span></p>
      <p>上次登录地点：<span>海南</span></p>
    </div>
  </el-card>
</template>

<script>
export default {
  data() {
    return {
      userImg: require("../../../../../assets/user.jpg"),
    };
  },
};
</script>

<style lang="less" scoped>
.user {
  display: flex;
  height: 180px;
  margin: 0 15px;
  border-bottom: 2px solid #d8d8d8;
  .userImage {
    width: 150px;
    height: 150px;
    margin: 5px;
    border-radius: 50%;
  }
  .userInfo {
    margin-left: 130px;
    margin-top: 40px;
    .uname {
      font-size: 21px;
    }
    .access {
      color: #d0d0d0;
      font-size: 12px;
    }
  }
}
.login-Info {
  margin: 0 15px;
  span {
    margin-left: 180px;
  }
}
</style>